<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Sugar</title>
  <style>
    [type] {
      background-color: pink;
    }
  </style>
</head>

<body>
  <input type="text">
  <input type="password">
  <div type>盒子</div>
  <div>盒子2</div>
</body>

</html>